Skip to content

Commit

Permalink
clean todos
Browse files Browse the repository at this point in the history
  • Loading branch information
mvanmeerbeck committed Oct 6, 2023
1 parent 08df34a commit a52afa5
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 13 deletions.
1 change: 0 additions & 1 deletion packages/marketplace/contracts/mocks/LibFeeSideTest.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ pragma solidity 0.8.21;

import {LibAsset} from "../lib-asset/LibAsset.sol";

// TODO: MAKE THE TESTS!!!
contract LibFeeSideTest {
function getFeeSideTest(
LibAsset.AssetClassType maker,
Expand Down
3 changes: 1 addition & 2 deletions packages/marketplace/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ const config: HardhatUserConfig = {
},
networks: {
hardhat: {
// TODO remove after size issue is resolved
allowUnlimitedContractSize: true,
allowUnlimitedContractSize: false,
},
},
};
Expand Down
4 changes: 0 additions & 4 deletions packages/marketplace/test/exchange/Exchange.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,6 @@ describe('Exchange.sol', function () {
).to.be.reverted;
});
describe('batching', function () {
// TODO: Add a lot more tests on batches.
it('should be able to buy two tokens from different orders in one txs', async function () {
const {
ExchangeContractAsUser,
Expand Down Expand Up @@ -2247,7 +2246,4 @@ describe('Exchange.sol', function () {
]);
});
});
// TODO
// describe("test match from", function () {});
// describe("test on pause", function () {});
});
3 changes: 0 additions & 3 deletions packages/marketplace/test/exchange/OrderValidator.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,4 @@ describe('OrderValidator.sol', function () {
)
).to.be.equal(false);
});
// TODO:
// it('should check start / end', async function () {});
// it('should check validate through the whitelist', async function () {});
});
1 change: 0 additions & 1 deletion packages/marketplace/test/fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import {ethers, upgrades} from 'hardhat';
import {ZeroAddress} from 'ethers';

// TODO: Split fixtures so we use only what is needed!!!
async function deploy() {
const [deployer, admin, user, defaultFeeReceiver, user1, user2] =
await ethers.getSigners();
Expand Down
1 change: 0 additions & 1 deletion packages/marketplace/test/utils/assets.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ export const AssetERC721 = async (
[await tokenContract.getAddress(), tokenId]
),
},
// TODO: Test value !=1
value: 1,
});

Expand Down
1 change: 0 additions & 1 deletion packages/marketplace/test/utils/order.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ export const getSymmetricOrder = async (
return {...ret, maker: o.taker};
};

// TODO: Test it.
export function hashOrder(order: Order): string {
const encoded = AbiCoder.defaultAbiCoder().encode(
[
Expand Down

1 comment on commit a52afa5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage for this commit

87.07%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/marketplace/contracts/exchange
   Exchange.sol79.71%70%87.50%86.96%174, 63, 79, 89, 89, 89, 89–90, 90, 90–91, 98
   ExchangeCore.sol84.81%61.54%100%95.45%118–119, 119, 119, 122, 188, 190, 194, 215–216, 64, 94
   OrderValidator.sol89.29%84.62%100%92%41, 71–72, 72, 72, 76
   WhiteList.sol97.67%93.75%100%100%63
packages/marketplace/contracts/exchange/libraries
   LibFill.sol60.87%33.33%75%69.23%32–33, 58, 68–69, 69, 69–70
   LibMath.sol27.50%18.75%50%30%100–103, 17–18, 33–34, 50, 50, 50–51, 72, 72, 72–73, 75, 88, 88, 88–89, 93, 93, 93, 93, 93, 97
packages/marketplace/contracts/interfaces
   IOrderValidator.sol100%100%100%100%
   IRoyaltiesProvider.sol100%100%100%100%
   IWhiteList.sol100%100%100%100%
packages/marketplace/contracts/lib-asset
   LibAsset.sol100%100%100%100%
packages/marketplace/contracts/lib-bp
   BpLibrary.sol100%100%100%100%
packages/marketplace/contracts/lib-order
   LibOrder.sol73.33%50%100%100%64, 64, 66, 66
packages/marketplace/contracts/lib-part
   LibPart.sol0%100%0%0%21
packages/marketplace/contracts/royalties
   IERC2981.sol100%100%100%100%
   LibRoyalties2981.sol78.57%50%100%88.89%19–20, 23
packages/marketplace/contracts/royalties-registry
   IMultiRoyaltyRecipients.sol100%100%100%100%
   RoyaltiesRegistry.sol90.40%85.29%100%90.79%166–167, 170–171, 212, 216, 247, 250, 256, 259, 276, 60
packages/marketplace/contracts/transfer-manager
   TransferExecutor.sol90.48%75%100%100%24, 30
   TransferManager.sol81.65%68.97%100%87.50%137, 190, 199, 206–207, 207, 207–208, 212, 220, 227–228, 252, 269, 273–275, 275, 275–277, 282–283, 306, 310–311, 62, 82–83
packages/marketplace/contracts/transfer-manager/interfaces
   IRoyaltyUGC.sol100%100%100%100%
   ITransferExecutor.sol100%100%100%100%
   ITransferManager.sol100%100%100%100%

Please sign in to comment.