Skip to content

Commit 60ec0b4

Browse files
authored
Add Aave V2 mocks (#121)
* add aave v2 mocks * v0.0.50
1 parent cb56b38 commit 60ec0b4

File tree

3 files changed

+64
-1
lines changed

3 files changed

+64
-1
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
/*
2+
Copyright 2021 Set Labs Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
16+
SPDX-License-Identifier: Apache License, Version 2.0
17+
*/
18+
19+
pragma solidity 0.6.10;
20+
21+
/**
22+
* @title LendingPoolAddressProviderMock
23+
* @author Set Protocol
24+
* @notice Mock contract for Aave's LendingPoolAddressProvider
25+
*/
26+
contract LendingPoolAddressProviderMock {
27+
function getLendingPool() external pure returns (address) {
28+
return address(0);
29+
}
30+
}
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
/*
2+
Copyright 2021 Set Labs Inc.
3+
4+
Licensed under the Apache License, Version 2.0 (the "License");
5+
you may not use this file except in compliance with the License.
6+
You may obtain a copy of the License at
7+
8+
http://www.apache.org/licenses/LICENSE-2.0
9+
10+
Unless required by applicable law or agreed to in writing, software
11+
distributed under the License is distributed on an "AS IS" BASIS,
12+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
See the License for the specific language governing permissions and
14+
limitations under the License.
15+
16+
SPDX-License-Identifier: Apache License, Version 2.0
17+
*/
18+
19+
pragma solidity 0.6.10;
20+
pragma experimental ABIEncoderV2;
21+
22+
import "../../interfaces/external/aave-v2/IProtocolDataProvider.sol";
23+
24+
/**
25+
* @title ProtocolDataProviderMock
26+
* @author Set Protocol
27+
* @notice Mock contract for Aave's ProtocolDataProvider
28+
*/
29+
contract ProtocolDataProviderMock {
30+
function getAllReservesTokens() external pure returns (IProtocolDataProvider.TokenData[] memory) {
31+
return new IProtocolDataProvider.TokenData[](0);
32+
}
33+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@setprotocol/set-protocol-v2",
3-
"version": "0.0.49",
3+
"version": "0.0.50",
44
"description": "",
55
"main": "dist",
66
"types": "dist/types",

0 commit comments

Comments
 (0)