Some checks failed
CI/CD Pipeline / Solidity Contracts (push) Failing after 1m20s
CI/CD Pipeline / Security Scanning (push) Successful in 2m48s
CI/CD Pipeline / Lint and Format (push) Failing after 47s
CI/CD Pipeline / Terraform Validation (push) Failing after 28s
CI/CD Pipeline / Kubernetes Validation (push) Successful in 30s
HYBX OMNL TypeScript & anchor / token-aggregation build + reconcile artifact (push) Failing after 44s
Validation / validate-genesis (push) Successful in 37s
Validation / validate-terraform (push) Failing after 42s
Validation / validate-kubernetes (push) Failing after 12s
Validation / validate-smart-contracts (push) Failing after 16m44s
Validation / validate-security (push) Failing after 20s
Validation / validate-documentation (push) Failing after 19s
Verify Deployment / Verify Deployment (push) Failing after 1m21s
Use dedicated cusdc_v2/cusdt_v2 SVG paths so GRU token alignment validation passes.
48 lines
1.5 KiB
Solidity
48 lines
1.5 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.19;
|
|
|
|
interface IPolicyManager {
|
|
// token config getters
|
|
function isPaused(address token) external view returns (bool);
|
|
|
|
function bridgeOnly(address token) external view returns (bool);
|
|
|
|
function bridge(address token) external view returns (address);
|
|
|
|
function lienMode(address token) external view returns (uint8); // 0 off, 1 hard, 2 encumbered
|
|
|
|
function isTokenFrozen(address token, address account) external view returns (bool);
|
|
|
|
// decision
|
|
function canTransfer(
|
|
address token,
|
|
address from,
|
|
address to,
|
|
uint256 amount
|
|
) external view returns (bool allowed, bytes32 reasonCode);
|
|
|
|
// setters
|
|
function setPaused(address token, bool paused) external;
|
|
|
|
function setBridgeOnly(address token, bool enabled) external;
|
|
|
|
function setBridge(address token, address bridgeAddr) external;
|
|
|
|
function setLienMode(address token, uint8 mode) external;
|
|
|
|
function freeze(address token, address account, bool frozen) external;
|
|
|
|
event TokenPaused(address indexed token, bool paused);
|
|
|
|
event BridgeOnlySet(address indexed token, bool enabled);
|
|
|
|
event BridgeSet(address indexed token, address bridge);
|
|
|
|
event LienModeSet(address indexed token, uint8 mode);
|
|
|
|
event TokenFreeze(address indexed token, address indexed account, bool frozen);
|
|
|
|
event TokenConfigured(address indexed token, bool paused, bool bridgeOnly, address bridge, uint8 lienMode);
|
|
}
|
|
|