mocked implementation of weaver logic
Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
parent
253a6314e0
commit
6998355887
20
src/mocks/WeaverMock.sol
Normal file
20
src/mocks/WeaverMock.sol
Normal file
@ -0,0 +1,20 @@
|
||||
// SPDX-License-Identifier: MIT
|
||||
pragma solidity ^0.8.20;
|
||||
|
||||
import {Weaver} from "../types/Weaver.sol";
|
||||
|
||||
contract WeaverMock is Weaver {
|
||||
constructor() Weaver() {}
|
||||
|
||||
function insertTreeNode(bytes32 receiver, uint256 amount) external returns (uint256) {
|
||||
return _insertTreeNode(receiver, amount);
|
||||
}
|
||||
|
||||
function computeArgumentsHash(
|
||||
uint256 index,
|
||||
uint256 amount,
|
||||
bytes32 receiver
|
||||
) external pure returns (bytes32) {
|
||||
return _computeArgumentsHash(index, amount, receiver);
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user