-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1200 from thesandboxgame/feat/marketplace-remove-…
…asset-matcher Feat/marketplace remove asset matcher
- Loading branch information
Showing
12 changed files
with
113 additions
and
163 deletions.
There are no files selected for viewing
18 changes: 0 additions & 18 deletions
18
packages/deploy/deploy/marketplace/03_deploy_asset_matcher.ts
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// SPDX-License-Identifier: MIT | ||
|
||
pragma solidity 0.8.21; | ||
|
||
import {LibAsset} from "../lib-asset/LibAsset.sol"; | ||
|
||
contract LibAssetTest { | ||
function getFeeSide( | ||
LibAsset.AssetClassType leftClass, | ||
LibAsset.AssetClassType rightClass | ||
) external pure returns (LibAsset.FeeSide) { | ||
return LibAsset.getFeeSide(leftClass, rightClass); | ||
} | ||
|
||
/// @notice calculate if Asset types match with each other | ||
/// @param leftType to be matched with rightAssetType | ||
/// @param rightType to be matched with leftAssetType | ||
/// @return AssetType of the match | ||
function matchAssets( | ||
LibAsset.AssetType calldata leftType, | ||
LibAsset.AssetType calldata rightType | ||
) external pure returns (LibAsset.AssetType memory) { | ||
return LibAsset.matchAssets(leftType, rightType); | ||
} | ||
|
||
/// @notice calculate hash of asset type | ||
/// @param assetType to be hashed | ||
/// @return hash of assetType | ||
function hash(LibAsset.AssetType memory assetType) external pure returns (bytes32) { | ||
return LibAsset.hash(assetType); | ||
} | ||
|
||
/// @notice calculate hash of asset | ||
/// @param asset to be hashed | ||
/// @return hash of asset | ||
function hash(LibAsset.Asset memory asset) external pure returns (bytes32) { | ||
return LibAsset.hash(asset); | ||
} | ||
} |
Oops, something went wrong.
a747e1f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Coverage for this commit
Coverage Report