This repository has been archived by the owner on Oct 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 40
/
tokenWhitelistableExporter.sol
77 lines (65 loc) · 1.91 KB
/
tokenWhitelistableExporter.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
71
72
73
74
75
76
77
// SPDX-License-Identifier: GPLv3
pragma solidity ^0.6.11;
import "../internals/tokenWhitelistable.sol";
import "../internals/ensResolvable.sol";
contract TokenWhitelistableExporter is ENSResolvable, TokenWhitelistable {
constructor(address _ens_, bytes32 _tokenWhitelistNode_) public {
_initializeENSResolvable(_ens_);
_initializeTokenWhitelistable(_tokenWhitelistNode_);
}
function getTokenInfo(address _a)
external
view
returns (
string memory,
uint256,
uint256,
bool,
bool,
bool,
uint256
)
{
return _getTokenInfo(_a);
}
function getStablecoinInfo()
external
view
returns (
string memory,
uint256,
uint256,
bool,
bool,
bool,
uint256
)
{
return _getStablecoinInfo();
}
function tokenAddressArray() external view returns (address[] memory) {
return _tokenAddressArray();
}
function redeemableTokens() external view returns (address[] memory) {
return _redeemableTokens();
}
function updateTokenRate(
address _token,
uint256 _rate,
uint256 _updateDate
) external {
return _updateTokenRate(_token, _rate, _updateDate);
}
function getERC20RecipientAndAmount(address _destination, bytes calldata _data) external view returns (address, uint256) {
return _getERC20RecipientAndAmount(_destination, _data);
}
function isTokenLoadable(address _a) external view returns (bool) {
return _isTokenLoadable(_a);
}
function isTokenAvailable(address _a) external view returns (bool) {
return _isTokenAvailable(_a);
}
function isTokenRedeemable(address _a) external view returns (bool) {
return _isTokenRedeemable(_a);
}
}