Skip to content

Commit

Permalink
Merge pull request #1588 from thesandboxgame/test/marketplace-integra…
Browse files Browse the repository at this point in the history
…tion-tests

Marketplace Bundle Integration tests
  • Loading branch information
wojciech-turek authored Dec 3, 2024
2 parents 5a14b1f + c56f4da commit c552bec
Show file tree
Hide file tree
Showing 10 changed files with 780 additions and 0 deletions.
26 changes: 26 additions & 0 deletions packages/deploy/integration_test/marketplace/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
export const GRID_SIZE = 408;

//ERC20 to exchange for
export const erc20PriceForBundle = 10000000000;

// Configuration for ERC721 land tokens (array of [x,y] values)
export const erc721 = [
// Add (x, y) pairs as needed
];

// Configuration for quad land (array of [x, y, size] values)
export const quad = [
// Add (size,x, y) triples as needed
];

// Configuration for ERC1155 assets (array of [tokenId, supply] values)
export const erc1155 = [
// Add [tier, amount, metadataHash] as needed
];

// Price distribution setup
export const priceDistribution = {
erc721Prices: [[]],
erc1155Prices: [[]],
quadPrices: [],
};
Loading

1 comment on commit c552bec

@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

98.26%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
packages/marketplace/contracts
   Exchange.sol94.67%93.33%94.74%96.15%131, 206, 77
   ExchangeCore.sol97.75%93.75%100%100%200, 82
   OrderValidator.sol98.48%96.15%100%100%37
   RoyaltiesRegistry.sol96.35%88.89%100%98.80%196, 218–219, 265, 66
   TransferManager.sol96.09%87.80%100%99.42%164, 226, 248, 315, 375, 413, 564, 569, 580, 602, 94
   Whitelist.sol76.19%60%85.71%82.76%106, 110–111, 125, 128, 144–145, 56, 68, 68–69, 73, 78
packages/marketplace/contracts/interfaces
   IOrderValidator.sol100%100%100%100%
   IRoyaltiesProvider.sol100%100%100%100%
   ITransferManager.sol100%100%100%100%
   IWhitelist.sol100%100%100%100%
packages/marketplace/contracts/libraries
   LibAsset.sol97.47%92.31%100%100%86, 88
   LibMath.sol100%100%100%100%
   LibOrder.sol100%100%100%100%

Please sign in to comment.