caelum0x 2b68bde5d5 Predikt: full Polymarket-style prediction market — web + mobile + on-chain + bots
Working tree is now the canonical repo. Off-chain play-money + trustless on-chain
(FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution,
mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-06 23:29:50 +03:00

64 lines
1.7 KiB
Solidity

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.4;
import "../../../src/utils/EIP712.sol";
/// @dev WARNING! This mock is strictly intended for testing purposes only.
/// Do NOT copy anything here into production code unless you really know what you are doing.
contract MockEIP712Dynamic is EIP712 {
string private _name;
string private _version;
constructor(string memory name, string memory version) {
_name = name;
_version = version;
}
function setDomainNameAndVersion(string memory name, string memory version) public {
_name = name;
_version = version;
}
function _domainNameAndVersion()
internal
view
override
returns (string memory name, string memory version)
{
name = _name;
version = _version;
}
function _domainNameAndVersionMayChange() internal pure override returns (bool) {
return true;
}
function hashTypedData(bytes32 structHash) external view returns (bytes32) {
return _hashTypedData(structHash);
}
function DOMAIN_SEPARATOR() external view returns (bytes32) {
return _domainSeparator();
}
function hashTypedDataSansChainId(bytes32 structHash) external view returns (bytes32) {
return _hashTypedDataSansChainId(structHash);
}
function hashTypedDataSansChainIdAndVerifyingContract(bytes32 structHash)
external
view
returns (bytes32)
{
return _hashTypedDataSansChainIdAndVerifyingContract(structHash);
}
function hashTypedDataSansVerifyingContract(bytes32 structHash)
external
view
returns (bytes32)
{
return _hashTypedDataSansVerifyingContract(structHash);
}
}