Skip to content

Commit

Permalink
[Feature] Make StarcoinDAO inherit Dao's config (#144)
Browse files Browse the repository at this point in the history
* StarcoinDAO use old config

* fix build file
  • Loading branch information
WGB5445 committed Sep 25, 2022
1 parent 971a1a2 commit 8675779
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build/StarcoinFramework/BuildInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ compiled_package_info:
? address: "0x00000000000000000000000000000001"
name: YieldFarmingV2
: StarcoinFramework
source_digest: F80E466423D53185036DF2CE624112C6CC3F22A7A3DBC3010A1B5556F5FAA544
source_digest: D7E6AADF60D6DBC2B4D201DAD7194CB302243FDE0120938288500A2ACB9E75B8
build_flags:
dev_mode: false
test_mode: false
Expand Down
Binary file modified build/StarcoinFramework/bytecode_modules/StdlibUpgradeScripts.mv
Binary file not shown.
3 changes: 2 additions & 1 deletion build/StarcoinFramework/docs/StdlibUpgradeScripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ The module for StdlibUpgrade init scripts
<b>use</b> <a href="DAOExtensionPoint.md#0x1_DAOExtensionPoint">0x1::DAOExtensionPoint</a>;
<b>use</b> <a href="DAOPluginMarketplace.md#0x1_DAOPluginMarketplace">0x1::DAOPluginMarketplace</a>;
<b>use</b> <a href="DAORegistry.md#0x1_DAORegistry">0x1::DAORegistry</a>;
<b>use</b> <a href="Dao.md#0x1_Dao">0x1::Dao</a>;
<b>use</b> <a href="GenesisNFT.md#0x1_GenesisNFT">0x1::GenesisNFT</a>;
<b>use</b> <a href="GenesisSignerCapability.md#0x1_GenesisSignerCapability">0x1::GenesisSignerCapability</a>;
<b>use</b> <a href="GrantProposalPlugin.md#0x1_GrantProposalPlugin">0x1::GrantProposalPlugin</a>;
Expand Down Expand Up @@ -366,7 +367,7 @@ deprecated, use <code>do_upgrade_from_v6_to_v7_with_language_version</code>.
<a href="UpgradeModulePlugin.md#0x1_UpgradeModulePlugin_initialize">UpgradeModulePlugin::initialize</a>();

//TODO : config rate need mind
<a href="StarcoinDAO.md#0x1_StarcoinDAO_create_dao">StarcoinDAO::create_dao</a>( 60000, 120000, 10, 10000, 1000 * 1000 * 1000 * 1000);
<a href="StarcoinDAO.md#0x1_StarcoinDAO_create_dao">StarcoinDAO::create_dao</a>( <a href="Dao.md#0x1_Dao_voting_delay">Dao::voting_delay</a>&lt;<a href="STC.md#0x1_STC">STC</a>&gt;(), <a href="Dao.md#0x1_Dao_voting_period">Dao::voting_period</a>&lt;<a href="STC.md#0x1_STC">STC</a>&gt;(), <a href="Dao.md#0x1_Dao_voting_quorum_rate">Dao::voting_quorum_rate</a>&lt;<a href="STC.md#0x1_STC">STC</a>&gt;(), <a href="Dao.md#0x1_Dao_min_action_delay">Dao::min_action_delay</a>&lt;<a href="STC.md#0x1_STC">STC</a>&gt;(), 1000 * 1000 * 1000 * 1000);
}
</code></pre>

Expand Down
Binary file modified build/StarcoinFramework/source_maps/StdlibUpgradeScripts.mvsm
Binary file not shown.
3 changes: 2 additions & 1 deletion sources/StdlibUpgradeScripts.move
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ module StdlibUpgradeScripts {
use StarcoinFramework::StakeToSBTPlugin;
use StarcoinFramework::UpgradeModulePlugin;
use StarcoinFramework::StarcoinDAO;
use StarcoinFramework::Dao;

spec module {
pragma verify = false;
Expand Down Expand Up @@ -134,7 +135,7 @@ module StdlibUpgradeScripts {
UpgradeModulePlugin::initialize();

//TODO : config rate need mind
StarcoinDAO::create_dao( 60000, 120000, 10, 10000, 1000 * 1000 * 1000 * 1000);
StarcoinDAO::create_dao( Dao::voting_delay<STC>(), Dao::voting_period<STC>(), Dao::voting_quorum_rate<STC>(), Dao::min_action_delay<STC>(), 1000 * 1000 * 1000 * 1000);
}
}
}

0 comments on commit 8675779

Please sign in to comment.