This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package keeper_test | |
| import ( | |
| "crypto/ecdsa" | |
| "testing" | |
| codectypes "github.com/cosmos/cosmos-sdk/codec/types" | |
| sdk "github.com/cosmos/cosmos-sdk/types" | |
| "encoding/hex" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: MIT | |
| pragma solidity ^0.8.10; | |
| import "forge-std/Test.sol"; | |
| // --- Interfaces --- | |
| interface IComptroller { | |
| function enterMarkets(address[] calldata cTokens) external returns (uint[] memory); | |
| function getAccountLiquidity(address account) external view returns (uint, uint, uint); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity 0.8.19; | |
| import "forge-std/Test.sol"; | |
| interface IERC20 { | |
| function balanceOf(address account) external view returns (uint256); | |
| function transfer(address to, uint256 amount) external returns (bool); | |
| function transferFrom(address from, address to, uint256 amount) external returns (bool); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity 0.8.20; | |
| import "forge-std/Test.sol"; | |
| interface IERC20 { | |
| function balanceOf(address account) external view returns (uint256); | |
| function transfer(address to, uint256 amount) external returns (bool); | |
| function transferFrom(address from, address to, uint256 amount) external returns (bool); | |
| function approve(address spender, uint256 amount) external returns (bool); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity 0.8.20; | |
| import "forge-std/Test.sol"; | |
| interface IERC20 { | |
| function balanceOf(address account) external view returns (uint256); | |
| function transfer(address to, uint256 amount) external returns (bool); | |
| function transferFrom(address from, address to, uint256 amount) external returns (bool); | |
| function approve(address spender, uint256 amount) external returns (bool); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // SPDX-License-Identifier: UNLICENSED | |
| pragma solidity 0.8.19; | |
| import "forge-std/Test.sol"; | |
| interface IERC20 { | |
| function balanceOf(address account) external view returns (uint256); | |
| function transferFrom(address from, address to, uint256 amount) external returns (bool); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pragma solidity ^0.8.20; | |
| import "forge-std/Test.sol"; | |
| // 1. Mocking the DOLA token | |
| contract MockDOLA { | |
| mapping(address => uint256) public balanceOf; | |
| function mint(address to, uint256 amount) external { balanceOf[to] += amount; } | |
| function transfer(address to, uint256 amount) external returns (bool) { | |
| balanceOf[msg.sender] -= amount; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #******************************************************************************# | |
| # # | |
| # ::: :::::::: # | |
| # rocky_install.sh :+: :+: :+: # | |
| # +:+ +:+ +:+ # | |
| # By: rel-qoqu <rel-qoqu@student.42.fr> +#+ +:+ +#+ # | |
| # +#+#+#+#+#+ +#+ # | |
| # Created: 2025/05/20 03:12:16 by rel-qoqu #+# #+# # | |
| # Updated: 2025/05/20 03:55:21 by rel-qoqu ### ########.fr # | |
| # # |