Skip to content

Commit

Permalink
test (CRC-582): Update tests for CirclesBacking and CirclesBackingFac…
Browse files Browse the repository at this point in the history
…tory contracts
  • Loading branch information
web3skeptic committed Jan 17, 2025
1 parent c075855 commit ac0d576
Show file tree
Hide file tree
Showing 4 changed files with 225 additions and 119 deletions.
2 changes: 2 additions & 0 deletions src/interfaces/IHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import {IHubV2} from "circles-contracts-v2/hub/IHub.sol";
interface IHub is IHubV2 {
function inflationDayZero() external view returns (uint256);
function trust(address _trustReceiver, uint96 _expiry) external;
function personalMint() external;
function registerHuman(address _inviter, bytes32 _metadataDigest) external;
function registerGroup(address _mint, string calldata _name, string calldata _symbol, bytes32 _metadataDigest)
external;
function wrap(address _avatar, uint256 _amount, uint8 _type) external returns (address);
Expand Down
3 changes: 3 additions & 0 deletions src/interfaces/ILBP.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ interface ILBP {
BPT_IN_FOR_EXACT_TOKENS_OUT
}

function getOwner() external view returns (address);
function getPoolId() external view returns (bytes32);
function getSwapEnabled() external view returns (bool);
function getSwapFeePercentage() external view returns (uint256);
function setSwapEnabled(bool swapEnabled) external;
function updateWeightsGradually(uint256 startTime, uint256 endTime, uint256[] memory endWeights) external;
}
20 changes: 20 additions & 0 deletions src/interfaces/IToken.sol
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.24;

import "@openzeppelin/contracts/token/ERC20/IERC20.sol";

/**
* @title IToken v1
* @author Circles UBI
* @notice legacy interface of Hub contract in Circles v1
*/
interface ITokenV1 is IERC20 {
function owner() external view returns (address);

function stop() external;
function stopped() external view returns (bool);

function update() external;

function lastTouched() external view returns (uint256);
}
Loading

0 comments on commit ac0d576

Please sign in to comment.