21 lines
797 B
Plaintext
21 lines
797 B
Plaintext
// ACC-Valuation: AI 驱动资产估值协议
|
||
// NAC 原生协议 - Charter 语言定义(CNNL 接口)
|
||
// UID: nac.acc.ACCValuationProtocol.v1
|
||
|
||
protocol ACCValuationProtocol {
|
||
// 提交估值请求(CNNL AI 引擎处理)
|
||
fn request_valuation(
|
||
asset_id: Hash, gnacs_code: String, asset_data: Vec<u8>,
|
||
constitutional_receipt: Hash
|
||
) -> Result<Hash, Error>;
|
||
// 获取最新估值结果(XTZH 计价)
|
||
fn get_valuation(asset_id: Hash) -> Option<ValuationResult>;
|
||
// 更新估值(AI 引擎回调)
|
||
fn update_valuation(
|
||
asset_id: Hash, new_value_xtzh: u128, ai_confidence: u8,
|
||
constitutional_receipt: Hash
|
||
) -> Result<(), Error>;
|
||
// 获取估值历史
|
||
fn get_valuation_history(asset_id: Hash) -> Vec<ValuationResult>;
|
||
}
|