forked from DecentralizedClimateFoundation/DCIPs
42 lines
1.0 KiB
Solidity
42 lines
1.0 KiB
Solidity
|
// 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);
|
||
|
}
|
||
|
}
|