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.
50 lines
1.2 KiB
Solidity
50 lines
1.2 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.19;
|
|
|
|
interface IDebtRegistry {
|
|
struct Lien {
|
|
address debtor;
|
|
uint256 amount;
|
|
uint64 expiry; // 0 = no expiry
|
|
uint8 priority;
|
|
address authority;
|
|
bytes32 reasonCode;
|
|
bool active;
|
|
}
|
|
|
|
function activeLienAmount(address debtor) external view returns (uint256);
|
|
|
|
function hasActiveLien(address debtor) external view returns (bool);
|
|
|
|
function activeLienCount(address debtor) external view returns (uint256);
|
|
|
|
function getLien(uint256 lienId) external view returns (Lien memory);
|
|
|
|
function placeLien(
|
|
address debtor,
|
|
uint256 amount,
|
|
uint64 expiry,
|
|
uint8 priority,
|
|
bytes32 reasonCode
|
|
) external returns (uint256 lienId);
|
|
|
|
function reduceLien(uint256 lienId, uint256 reduceBy) external;
|
|
|
|
function releaseLien(uint256 lienId) external;
|
|
|
|
event LienPlaced(
|
|
uint256 indexed lienId,
|
|
address indexed debtor,
|
|
uint256 amount,
|
|
uint64 expiry,
|
|
uint8 priority,
|
|
address indexed authority,
|
|
bytes32 reasonCode
|
|
);
|
|
|
|
event LienReduced(uint256 indexed lienId, uint256 reduceBy, uint256 newAmount);
|
|
|
|
event LienReleased(uint256 indexed lienId);
|
|
}
|
|
|