一起来读源码68-eosio.contracts eosio.msig

摘要

    用于多签,用户管理

 

详情

定义action

接口 参数 说明
propose

ignore 提名人, ignore 被提名名字, ignore> 权限等级, ignore 传输块

提名
approve

name proposer, name proposal_name, permission_level level, const eosio::bnary_extension& proposal_hash

批准
unapprove name proposer, name proposal_name, permission_level level 不批准
cancel name proposer, name proposal_name, nmae canceler 取消
exec name proposer, name proposal_name, name executer 执行提名
invalidate name account 让账号失效

定义表

struct [[eosio::table]] proposal {

    name              proposal_name;

    std::vector packed_transaction;

}

struct [[eosio::table]] old_approvals_info {

    name                          proposal_name;

    std::vector requested_approvals;

    std::vector provided_approvals;

}

struct approval {

    permission_level level;

    time_point       time;

}

struct [[eosio::table]] approvals_info {

    uint8_t               version = 1;

    name                  proposal_name;

    std::vector requested_approvals;

    std::vector provided_approvals;

}

struct [[eosio::table]] invalidation {

    name       account;

    time_point last_invalidation_time;

}

 

你可能感兴趣的:(一起读源码)