NAC_Blockchain/charter-std/acc/acc1594.ch

34 lines
1.1 KiB
Plaintext

// Charter 标准库 - ACC-1594 收益分配协议
// 版本: 1.0 | 基于 GNACS 数字基因的收益与资产操作协议
/// ACC-1594 收益分配接口
/// 在 ACC-1400 基础上增加:资产发行/赎回、收益分配、分红领取
protocol Acc1594 extends Acc1400 {
/// 发行资产(含宪法收据验证)
fn issue(
issuer: Address, to: Address, amount: u128,
data: Bytes, partition_id: Hash, receipt: Hash
) -> Result;
/// 赎回资产
fn redeem(
account: Address, amount: u128, data: Bytes,
partition_id: Hash, receipt: Hash
) -> Result;
/// 分配收益(分红)
fn distribute_dividend(
distributor: Address, partition_id: Hash,
total_amount: u128, period: u64, receipt: Hash
) -> Result;
/// 领取分红
fn claim_dividend(account: Address, partition_id: Hash, receipt: Hash) -> u128;
/// 查询可领取分红
fn claimable_dividend(account: Address, partition_id: Hash) -> u128;
/// 设置发行上限
fn set_issuance_limit(limit: u128);
}