-
Notifications
You must be signed in to change notification settings - Fork 2
/
L1NaffleView.sol
70 lines (60 loc) · 1.76 KB
/
L1NaffleView.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
62
63
64
65
66
67
68
69
70
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.17;
import "./L1NaffleBaseInternal.sol";
import "../../../interfaces/naffle/ethereum/IL1NaffleView.sol";
contract L1NaffleView is IL1NaffleView, L1NaffleBaseInternal {
/**
* @inheritdoc IL1NaffleView
*/
function getMinimumNaffleDuration() external view returns (uint256) {
return _getMinimumNaffleDuration();
}
/**
* @inheritdoc IL1NaffleView
*/
function getMinimumPaidTicketSpots() external view returns (uint256) {
return _getMinimumPaidTicketSpots();
}
/**
* @inheritdoc IL1NaffleView
*/
function getMinimumPaidTicketPriceInWei() external view returns (uint256) {
return _getMinimumPaidTicketPriceInWei();
}
/**
* @inheritdoc IL1NaffleView
*/
function getZkSyncNaffleContractAddress() external view returns (address) {
return _getZkSyncNaffleContractAddress();
}
/**
* @inheritdoc IL1NaffleView
*/
function getZkSyncAddress() external view returns (address) {
return _getZkSyncAddress();
}
/**
* @inheritdoc IL1NaffleView
*/
function getFoundersKeyAddress() external view returns (address) {
return _getFoundersKeyAddress();
}
/**
* @inheritdoc IL1NaffleView
*/
function getFoundersKeyPlaceholderAddress() external view returns (address) {
return _getFoundersKeyPlaceholderAddress();
}
/**
* @inheritdoc IL1NaffleView
*/
function getAdminRole() external pure returns (bytes32) {
return _getAdminRole();
}
/**
* @inheritdoc IL1NaffleView
*/
function getNaffleById(uint256 _id) external view returns (NaffleTypes.L1Naffle memory) {
return _getNaffleById(_id);
}
}