Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
jolestar committed Jun 24, 2022
1 parent 32341cb commit e004e16
Show file tree
Hide file tree
Showing 17 changed files with 501 additions and 184 deletions.
7 changes: 5 additions & 2 deletions build/StarcoinFramework/BuildInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,17 @@ compiled_package_info:
? address: "0x00000000000000000000000000000001"
name: IdentifierNFTScripts
: StarcoinFramework
? address: "0x00000000000000000000000000000001"
name: InstallPluginProposalPlugin
: StarcoinFramework
? address: "0x00000000000000000000000000000001"
name: LanguageVersion
: StarcoinFramework
? address: "0x00000000000000000000000000000001"
name: Math
: StarcoinFramework
? address: "0x00000000000000000000000000000001"
name: MemberJoinPlugin
name: MemberProposalPlugin
: StarcoinFramework
? address: "0x00000000000000000000000000000001"
name: MerkleNFTDistributor
Expand Down Expand Up @@ -270,7 +273,7 @@ compiled_package_info:
? address: "0x00000000000000000000000000000001"
name: YieldFarmingV2
: StarcoinFramework
source_digest: 82DDA0BB958E3F563595CF7866C674253BF2FD54BBCF4A205BD269203417DFF2
source_digest: 095AEF1C3BE79B9CC3E687EE3EAA8D96A197AD36EF0A05D8184C7D147D4CAF6C
build_flags:
dev_mode: false
test_mode: false
Expand Down
Binary file modified build/StarcoinFramework/bytecode_modules/GenesisDao.mv
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified build/StarcoinFramework/bytecode_modules/XDao.mv
Binary file not shown.
182 changes: 169 additions & 13 deletions build/StarcoinFramework/docs/GenesisDao.md

Large diffs are not rendered by default.

157 changes: 157 additions & 0 deletions build/StarcoinFramework/docs/InstallPluginProposalPlugin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@

<a name="0x1_InstallPluginProposalPlugin"></a>

# Module `0x1::InstallPluginProposalPlugin`



- [Struct `InstallPluginProposalPlugin`](#0x1_InstallPluginProposalPlugin_InstallPluginProposalPlugin)
- [Struct `InstallPluginAction`](#0x1_InstallPluginProposalPlugin_InstallPluginAction)
- [Function `required_caps`](#0x1_InstallPluginProposalPlugin_required_caps)
- [Function `create_proposal`](#0x1_InstallPluginProposalPlugin_create_proposal)
- [Function `execute_proposal`](#0x1_InstallPluginProposalPlugin_execute_proposal)


<pre><code><b>use</b> <a href="GenesisDao.md#0x1_GenesisDao">0x1::GenesisDao</a>;
<b>use</b> <a href="Vector.md#0x1_Vector">0x1::Vector</a>;
</code></pre>



<a name="0x1_InstallPluginProposalPlugin_InstallPluginProposalPlugin"></a>

## Struct `InstallPluginProposalPlugin`



<pre><code><b>struct</b> <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin">InstallPluginProposalPlugin</a> <b>has</b> drop
</code></pre>



<details>
<summary>Fields</summary>


<dl>
<dt>
<code>dummy_field: bool</code>
</dt>
<dd>

</dd>
</dl>


</details>

<a name="0x1_InstallPluginProposalPlugin_InstallPluginAction"></a>

## Struct `InstallPluginAction`



<pre><code><b>struct</b> <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin_InstallPluginAction">InstallPluginAction</a>&lt;ToInstallPluginT&gt; <b>has</b> store
</code></pre>



<details>
<summary>Fields</summary>


<dl>
<dt>
<code>required_caps: vector&lt;<a href="GenesisDao.md#0x1_GenesisDao_CapType">GenesisDao::CapType</a>&gt;</code>
</dt>
<dd>

</dd>
</dl>


</details>

<a name="0x1_InstallPluginProposalPlugin_required_caps"></a>

## Function `required_caps`



<pre><code><b>public</b> <b>fun</b> <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin_required_caps">required_caps</a>(): vector&lt;<a href="GenesisDao.md#0x1_GenesisDao_CapType">GenesisDao::CapType</a>&gt;
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>public</b> <b>fun</b> <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin_required_caps">required_caps</a>():vector&lt;CapType&gt;{
<b>let</b> caps = <a href="Vector.md#0x1_Vector_singleton">Vector::singleton</a>(<a href="GenesisDao.md#0x1_GenesisDao_proposal_cap_type">GenesisDao::proposal_cap_type</a>());
<a href="Vector.md#0x1_Vector_push_back">Vector::push_back</a>(&<b>mut</b> caps, <a href="GenesisDao.md#0x1_GenesisDao_install_plugin_cap_type">GenesisDao::install_plugin_cap_type</a>());
caps
}
</code></pre>



</details>

<a name="0x1_InstallPluginProposalPlugin_create_proposal"></a>

## Function `create_proposal`



<pre><code><b>public</b> <b>fun</b> <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin_create_proposal">create_proposal</a>&lt;DaoT: store, ToInstallPluginT&gt;(sender: &signer, required_caps: vector&lt;<a href="GenesisDao.md#0x1_GenesisDao_CapType">GenesisDao::CapType</a>&gt;, action_delay: u64)
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>public</b> <b>fun</b> <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin_create_proposal">create_proposal</a>&lt;DaoT: store, ToInstallPluginT&gt;(sender: &signer, required_caps: vector&lt;CapType&gt;, action_delay: u64){
<b>let</b> witness = <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin">InstallPluginProposalPlugin</a>{};

<b>let</b> cap = <a href="GenesisDao.md#0x1_GenesisDao_acquire_proposal_cap">GenesisDao::acquire_proposal_cap</a>&lt;DaoT, <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin">InstallPluginProposalPlugin</a>&gt;(&witness);
<b>let</b> action = <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin_InstallPluginAction">InstallPluginAction</a>&lt;ToInstallPluginT&gt;{
required_caps,
};
<a href="GenesisDao.md#0x1_GenesisDao_create_proposal">GenesisDao::create_proposal</a>(&cap, sender, action, action_delay);
}
</code></pre>



</details>

<a name="0x1_InstallPluginProposalPlugin_execute_proposal"></a>

## Function `execute_proposal`



<pre><code><b>public</b> <b>fun</b> <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin_execute_proposal">execute_proposal</a>&lt;DaoT: store, ToInstallPluginT&gt;(sender: &signer, proposal_id: u64)
</code></pre>



<details>
<summary>Implementation</summary>


<pre><code><b>public</b> <b>fun</b> <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin_execute_proposal">execute_proposal</a>&lt;DaoT: store, ToInstallPluginT&gt;(sender: &signer, proposal_id: u64){
<b>let</b> witness = <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin">InstallPluginProposalPlugin</a>{};
<b>let</b> proposal_cap = <a href="GenesisDao.md#0x1_GenesisDao_acquire_proposal_cap">GenesisDao::acquire_proposal_cap</a>&lt;DaoT, <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin">InstallPluginProposalPlugin</a>&gt;(&witness);
<b>let</b> <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin_InstallPluginAction">InstallPluginAction</a>{required_caps} = <a href="GenesisDao.md#0x1_GenesisDao_execute_proposal">GenesisDao::execute_proposal</a>&lt;DaoT, <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin">InstallPluginProposalPlugin</a>, <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin_InstallPluginAction">InstallPluginAction</a>&lt;ToInstallPluginT&gt;&gt;(&proposal_cap, sender, proposal_id);
<b>let</b> install_plugin_cap = <a href="GenesisDao.md#0x1_GenesisDao_acquire_install_plugin_cap">GenesisDao::acquire_install_plugin_cap</a>&lt;DaoT, <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin">InstallPluginProposalPlugin</a>&gt;(&witness);
<a href="GenesisDao.md#0x1_GenesisDao_install_plugin">GenesisDao::install_plugin</a>&lt;DaoT, <a href="InstallPluginProposalPlugin.md#0x1_InstallPluginProposalPlugin">InstallPluginProposalPlugin</a>, ToInstallPluginT&gt;(&install_plugin_cap, required_caps);
}
</code></pre>



</details>
135 changes: 0 additions & 135 deletions build/StarcoinFramework/docs/MemberJoinPlugin.md

This file was deleted.

0 comments on commit e004e16

Please sign in to comment.