DCIPs/assets/eip-6220/contracts/mocks/CatalogMock.sol

42 lines
1.0 KiB
Solidity
Raw Normal View History

// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.16;
import "../Catalog.sol";
contract CatalogMock is Catalog {
constructor(string memory metadataURI, string memory type_)
Catalog(metadataURI, type_)
{}
function addPart(IntakeStruct calldata intakeStruct) external {
_addPart(intakeStruct);
}
function addPartList(IntakeStruct[] calldata intakeStructs) external {
_addPartList(intakeStructs);
}
function addEquippableAddresses(
uint64 partId,
address[] calldata equippableAddresses
) external {
_addEquippableAddresses(partId, equippableAddresses);
}
function setEquippableAddresses(
uint64 partId,
address[] calldata equippableAddresses
) external {
_setEquippableAddresses(partId, equippableAddresses);
}
function setEquippableToAll(uint64 partId) external {
_setEquippableToAll(partId);
}
function resetEquippableAddresses(uint64 partId) external {
_resetEquippableAddresses(partId);
}
}