all files / contracts/mocks/ MockSpanningERC20Container.sol

80% Statements 4/5
100% Branches 0/0
83.33% Functions 5/6
80% Lines 4/5
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65                                                                                                                         
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright (C) 2022 Spanning Labs Inc.
 
pragma solidity ^0.8.0;
 
import "@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "../token/ERC20/SpanningERC20Container.sol";
 
/**
 * This contract is for duringToken functions
 * @dev Implementation of the {ISpanningERC20} interface.
 */
contract MockSpanningERC20Container is SpanningERC20Container {
    // This allows us to efficiently unpack data in our address specification.
    using SpanningAddress for bytes32;
 
    /**
     * @dev Creates the instance and assigns required values.
     *
     * @param name - Desired name for the token
     * @param symbol - Desired symbol for the token
     * @param delegate - Legacy (local) address for the Spanning Delegate
     */
    constructor(
        string memory name,
        string memory symbol,
        address delegate
    ) SpanningERC20Container(name, symbol, delegate) {}
    function mint(bytes32 receiverAddress, uint256 amount) public {
        _mint(receiverAddress, amount);
    }
    function duringTokenMint(
        bytes32 senderAddress,
        bytes32 receiverAddress,
        uint256 amount
    ) public {
        _duringTokenMint(senderAddress, receiverAddress, amount);
    }
 
    function duringTokenBurn(
        bytes32 senderAddress,
        bytes32 receiverAddress,
        uint256 amount
    ) public {
        _duringTokenBurn(senderAddress, receiverAddress, amount);
    }
 
    function duringTokenTransfer(
        bytes32 senderAddress,
        bytes32 receiverAddress,
        uint256 amount
    ) public {
        _duringTokenTransfer(senderAddress, receiverAddress, amount);
    }
 
    function duringTokenApprove(
        bytes32 senderAddress,
        bytes32 receiverAddress,
        uint256 amount
    ) public {
        _duringTokenApprove(senderAddress, receiverAddress, amount);
    }
}