mocked implementation of weaver logic

Signed-off-by: Uncle Stretch <uncle.stretch@ghostchain.io>
This commit is contained in:
Uncle Stretch 2026-07-30 22:12:27 +03:00
parent 253a6314e0
commit 6998355887
Signed by: str3tch
GPG Key ID: 84F3190747EE79AA

20
src/mocks/WeaverMock.sol Normal file
View 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);
}
}