Skip to content

Commit

Permalink
Revert "[Feature] Make StarcoinDAO inherit Dao's config (#144)"
Browse files Browse the repository at this point in the history
This reverts commit 8675779.
  • Loading branch information
nkysg committed Mar 3, 2023
1 parent 3807dba commit 050aabf
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 5 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: D7E6AADF60D6DBC2B4D201DAD7194CB302243FDE0120938288500A2ACB9E75B8
source_digest: F80E466423D53185036DF2CE624112C6CC3F22A7A3DBC3010A1B5556F5FAA544
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: 1 addition & 2 deletions build/StarcoinFramework/docs/StdlibUpgradeScripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ 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 @@ -367,7 +366,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>( <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);
<a href="StarcoinDAO.md#0x1_StarcoinDAO_create_dao">StarcoinDAO::create_dao</a>( 60000, 120000, 10, 10000, 1000 * 1000 * 1000 * 1000);
}
</code></pre>

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

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

//TODO : config rate need mind
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);
StarcoinDAO::create_dao( 60000, 120000, 10, 10000, 1000 * 1000 * 1000 * 1000);
}
}
}

0 comments on commit 050aabf

Please sign in to comment.