Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick95550 committed Jun 26, 2024
1 parent ce77d0e commit 35e1708
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 34 deletions.
2 changes: 1 addition & 1 deletion contracts/staking/seekers/ISeekerStatsOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ interface ISeekerStatsOracle {
uint256 attrChip;
}

function setOracle(address _seekerStatsOracleAccount) external;
function setOracle(address _oracle) external;

function createProofMessage(Seeker calldata seeker) external pure returns (bytes memory);

Expand Down
16 changes: 0 additions & 16 deletions contracts/staking/seekers/SeekerStatsOracle.sol
Original file line number Diff line number Diff line change
Expand Up @@ -111,22 +111,6 @@ contract SeekerStatsOracle is ISeekerStatsOracle, Initializable, Ownable2StepUpg
return _createProofMessage(seeker);
}

/**
* @notice Creates a unique proofing message for the provided seeker.
* @param seeker The object containing the seekers statistics.
*/
function createProofMessage(Seeker calldata seeker) external pure returns (bytes memory) {
return _createProofMessage(seeker);
}

/**
* @notice Creates a unique proofing message for the provided seeker.
* @param seeker The object containing the seeker's statistics.
*/
function createProofMessage(Seeker calldata seeker) external pure returns (bytes memory) {
return _createProofMessage(seeker);
}

/**
* @notice Creates a unique proofing message for the provided seeker.
* @param seeker The object containing the seekers statistics.
Expand Down
18 changes: 1 addition & 17 deletions test/seekerStats/stakingStats.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ describe('Seeker Stats', () => {
);
});

it('seeker stats oracle supports correct interfaces', async () => {
it('supports only seeker stats oracle interface', async () => {
const abi = [
'function setOracle(address _seekerStatsOracleAccount) external',
'function createProofMessage((uint256,uint256,uint256,uint256,uint256,uint256,uint256,uint256) calldata seeker) external pure returns (bytes memory)',
Expand All @@ -273,22 +273,6 @@ describe('Seeker Stats', () => {
'Expected seeker stats oracle to support correct interface',
);

const abiERC165 = [
'function supportsInterface(bytes4 interfaceId) external view returns (bool)',
];

const interfaceIdERC165 = getInterfaceId(abiERC165);

const supportsERC165 = await seekerStatsOracle.supportsInterface(
interfaceIdERC165,
);

assert.equal(
supportsERC165,
true,
'Expected seeker stats oracle to support ERC165',
);

const invalidAbi = ['function foo(uint256 duration) external'];

const invalidAbiInterfaceId = getInterfaceId(invalidAbi);
Expand Down

0 comments on commit 35e1708

Please sign in to comment.