starcoinorg / starcoin-framework

The Starcoin Move framework
Apache License 2.0
50 stars 27 forks source link

[Feature Request]: Add install_plugin function to TreasuryPlugin #211

Closed jolestar closed 2 years ago

jolestar commented 2 years ago

Feature Request

Describe the Feature Request

Add install_plugin_proposal and install_plugin_proposal_entry to TreasuryPlugin.


public fun install_plugin_proposal<DAOT: store>(
        sender: &signer,
        title:vector<u8>,
        introduction:vector<u8>,
        extend: vector<u8>,
        action_delay: u64
);

public(script) fun install_plugin_proposal_entry<DAOT: store>(
    sender: signer,
    title:vector<u8>,
    introduction:vector<u8>,
    extend: vector<u8>,
    action_delay: u64
);

Describe Preferred Solution

Describe Alternatives

Related Code

Additional Context

If the feature request is approved, would you be willing to submit a PR? Yes / No (Help can be provided if you need assistance submitting a PR)