Skip to content

Commit

Permalink
upgrade and rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
WGB5445 committed Sep 14, 2022
1 parent 0749d3a commit 0735be9
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 14 deletions.
2 changes: 1 addition & 1 deletion build/StarcoinFramework/BuildInfo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ compiled_package_info:
? address: "0x00000000000000000000000000000001"
name: YieldFarmingV2
: StarcoinFramework
source_digest: C301E581A89D4E5782A094C0081B80FE51B2171E955BD365A482773E365B9988
source_digest: 25ECF2754312EBC49B1DBE3DB09DC2A65003124E9C7037B9377DACB300395E8E
build_flags:
dev_mode: false
test_mode: false
Expand Down
6 changes: 3 additions & 3 deletions integration-tests/daospace/stake_to_sbt_plugin.exp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 5 'run'. lines 61-69:

task 6 'run'. lines 71-107:
{
"gas_used": 569552,
"gas_used": 652263,
"status": "Executed"
}

Expand Down Expand Up @@ -36,7 +36,7 @@ task 9 'run'. lines 124-137:

task 10 'run'. lines 139-155:
{
"gas_used": 336817,
"gas_used": 419528,
"status": "Executed"
}

Expand All @@ -48,7 +48,7 @@ task 12 'run'. lines 159-172:

task 13 'run'. lines 174-190:
{
"gas_used": 458338,
"gas_used": 541049,
"status": "Executed"
}

Expand Down
2 changes: 1 addition & 1 deletion integration-tests/starcoin_dao/starcoin_onchain_config.exp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 4 'run'. lines 9-17:

task 5 'run'. lines 19-33:
{
"gas_used": 570261,
"gas_used": 586891,
"status": "Executed"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ script {
fun stake_and_check(sender: signer) {
let token = Account::withdraw<STC::STC>(
&sender, 1000 * Token::scaling_factor<STC::STC>());
StakeToSBTPlugin::stake<StarcoinDAO, STC::STC>(&sender, token, 100000);
StakeToSBTPlugin::stake<StarcoinDAO, STC::STC>(&sender, token, 60000);
}
}
// check: EXECUTED
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/starcoin_dao/starcoin_upgrade_module.exp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ task 4 'run'. lines 9-17:

task 5 'run'. lines 19-33:
{
"gas_used": 570261,
"gas_used": 586891,
"status": "Executed"
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ script {
fun stake_and_check(sender: signer) {
let token = Account::withdraw<STC::STC>(
&sender, 1000 * Token::scaling_factor<STC::STC>());
StakeToSBTPlugin::stake<StarcoinDAO, STC::STC>(&sender, token, 100000);
StakeToSBTPlugin::stake<StarcoinDAO, STC::STC>(&sender, token, 60000);
}
}
// check: EXECUTED
Expand Down
2 changes: 1 addition & 1 deletion sources/StarcoinDAO.move
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ module StarcoinFramework::StarcoinDAO{

DAOSpace::install_plugin_with_root_cap<StarcoinDAO, StakeToSBTPlugin>(&dao_root_cap, StakeToSBTPlugin::required_caps());
StakeToSBTPlugin::accept_token_with_root_cap<StarcoinDAO, STC>(&dao_root_cap);
StakeToSBTPlugin::set_sbt_weight_with_root_cap<StarcoinDAO, STC>(&dao_root_cap, 10, 2000);
StakeToSBTPlugin::set_sbt_weight_with_root_cap<StarcoinDAO, STC>(&dao_root_cap, 60000, 1000);

DAOSpace::burn_root_cap(dao_root_cap);

Expand Down
6 changes: 1 addition & 5 deletions sources/daospaceplugin/StakeToSBTPlugin.move
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,7 @@ module StarcoinFramework::StakeToSBTPlugin {
dao_id: DAOSpace::dao_id(DAOSpace::dao_address<DAOT>()),
stake_id: id,
token_code: Token::token_code<TokenT>(),
amount:



,
amount: sbt_amount,
lock_time,
weight,
sbt_amount,
Expand Down

0 comments on commit 0735be9

Please sign in to comment.