Skip to content

Commit 4a7ef92

Browse files
committed
update module names
1 parent a0aaed9 commit 4a7ef92

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

test-helper/src/dao.rs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ pub fn execute_create_account(
172172
pub fn quorum_vote<S: StateView>(state_view: &S, token: TypeTag) -> u128 {
173173
let mut ret = execute_readonly_function(
174174
state_view,
175-
&ModuleId::new(genesis_address(), Identifier::new("Dao").unwrap()),
175+
&ModuleId::new(genesis_address(), Identifier::new("dao").unwrap()),
176176
&Identifier::new("quorum_votes").unwrap(),
177177
vec![token],
178178
vec![],
@@ -186,7 +186,7 @@ pub fn quorum_vote<S: StateView>(state_view: &S, token: TypeTag) -> u128 {
186186
pub fn voting_delay<S: StateView>(state_view: &S, token: TypeTag) -> u64 {
187187
let mut ret = execute_readonly_function(
188188
state_view,
189-
&ModuleId::new(genesis_address(), Identifier::new("Dao").unwrap()),
189+
&ModuleId::new(genesis_address(), Identifier::new("dao").unwrap()),
190190
&Identifier::new("voting_delay").unwrap(),
191191
vec![token],
192192
vec![],
@@ -200,7 +200,7 @@ pub fn voting_delay<S: StateView>(state_view: &S, token: TypeTag) -> u64 {
200200
pub fn voting_period<S: StateView>(state_view: &S, token: TypeTag) -> u64 {
201201
let mut ret = execute_readonly_function(
202202
state_view,
203-
&ModuleId::new(genesis_address(), Identifier::new("Dao").unwrap()),
203+
&ModuleId::new(genesis_address(), Identifier::new("dao").unwrap()),
204204
&Identifier::new("voting_period").unwrap(),
205205
vec![token],
206206
vec![],
@@ -214,7 +214,7 @@ pub fn voting_period<S: StateView>(state_view: &S, token: TypeTag) -> u64 {
214214
pub fn min_action_delay<S: StateView>(state_view: &S, token: TypeTag) -> u64 {
215215
let mut ret = execute_readonly_function(
216216
state_view,
217-
&ModuleId::new(genesis_address(), Identifier::new("Dao").unwrap()),
217+
&ModuleId::new(genesis_address(), Identifier::new("dao").unwrap()),
218218
&Identifier::new("min_action_delay").unwrap(),
219219
vec![token],
220220
vec![],
@@ -253,7 +253,7 @@ fn execute_cast_vote(
253253
let script_function = EntryFunction::new(
254254
ModuleId::new(
255255
core_code_address(),
256-
Identifier::new("DaoVoteScripts").unwrap(),
256+
Identifier::new("dao_vote_scripts").unwrap(),
257257
),
258258
Identifier::new("cast_vote").unwrap(),
259259
vec![stc_type_tag(), dao_action_type_tag.clone()],
@@ -296,7 +296,7 @@ pub fn vote_script_consensus(_net: &ChainNetwork, strategy: u8) -> EntryFunction
296296
EntryFunction::new(
297297
ModuleId::new(
298298
core_code_address(),
299-
Identifier::new("OnChainConfigScripts").unwrap(),
299+
Identifier::new("on_chain_config_scripts").unwrap(),
300300
),
301301
Identifier::new("propose_update_consensus_config").unwrap(),
302302
vec![],
@@ -322,7 +322,7 @@ pub fn vote_reward_scripts(_net: &ChainNetwork, reward_delay: u64) -> EntryFunct
322322
EntryFunction::new(
323323
ModuleId::new(
324324
core_code_address(),
325-
Identifier::new("OnChainConfigScripts").unwrap(),
325+
Identifier::new("on_chain_config_scripts").unwrap(),
326326
),
327327
Identifier::new("propose_update_reward_config").unwrap(),
328328
vec![],
@@ -338,7 +338,7 @@ pub fn vote_txn_timeout_script(_net: &ChainNetwork, duration_seconds: u64) -> En
338338
EntryFunction::new(
339339
ModuleId::new(
340340
core_code_address(),
341-
Identifier::new("OnChainConfigScripts").unwrap(),
341+
Identifier::new("on_chain_config_scripts").unwrap(),
342342
),
343343
Identifier::new("propose_update_txn_timeout_config").unwrap(),
344344
vec![],
@@ -358,7 +358,7 @@ pub fn vote_txn_publish_option_script(
358358
EntryFunction::new(
359359
ModuleId::new(
360360
core_code_address(),
361-
Identifier::new("OnChainConfigScripts").unwrap(),
361+
Identifier::new("on_chain_config_scripts").unwrap(),
362362
),
363363
Identifier::new("propose_update_txn_publish_option").unwrap(),
364364
vec![],
@@ -375,7 +375,7 @@ pub fn vote_vm_config_script(_net: &ChainNetwork, vm_config: VMConfig) -> EntryF
375375
EntryFunction::new(
376376
ModuleId::new(
377377
core_code_address(),
378-
Identifier::new("OnChainConfigScripts").unwrap(),
378+
Identifier::new("on_chain_config_scripts").unwrap(),
379379
),
380380
Identifier::new("propose_update_vm_config").unwrap(),
381381
vec![],
@@ -390,7 +390,7 @@ pub fn vote_language_version(_net: &ChainNetwork, lang_version: u64) -> EntryFun
390390
EntryFunction::new(
391391
ModuleId::new(
392392
core_code_address(),
393-
Identifier::new("OnChainConfigScripts").unwrap(),
393+
Identifier::new("on_chain_config_scripts").unwrap(),
394394
),
395395
Identifier::new("propose_update_move_language_version").unwrap(),
396396
vec![],
@@ -405,7 +405,7 @@ pub fn vote_flexi_dag_config(_net: &ChainNetwork, effective_height: u64) -> Entr
405405
EntryFunction::new(
406406
ModuleId::new(
407407
core_code_address(),
408-
Identifier::new("OnChainConfigScripts").unwrap(),
408+
Identifier::new("on_chain_config_scripts").unwrap(),
409409
),
410410
Identifier::new("propose_update_flexi_dag_effective_height").unwrap(),
411411
vec![],
@@ -425,7 +425,7 @@ pub fn execute_script_on_chain_config(
425425
EntryFunction::new(
426426
ModuleId::new(
427427
core_code_address(),
428-
Identifier::new("OnChainConfigScripts").unwrap(),
428+
Identifier::new("on_chain_config_scripts").unwrap(),
429429
),
430430
Identifier::new("execute_on_chain_config_proposal").unwrap(),
431431
vec![type_tag],
@@ -551,7 +551,7 @@ pub fn dao_vote_test(
551551
assert_eq!(state, AGREED);
552552

553553
let script_function = EntryFunction::new(
554-
ModuleId::new(core_code_address(), Identifier::new("Dao").unwrap()),
554+
ModuleId::new(core_code_address(), Identifier::new("dao").unwrap()),
555555
Identifier::new("queue_proposal_action").unwrap(),
556556
vec![stc_type_tag(), action_type_tag.clone()],
557557
vec![
@@ -635,7 +635,7 @@ pub fn dao_vote_test(
635635
let script_function = EntryFunction::new(
636636
ModuleId::new(
637637
core_code_address(),
638-
Identifier::new("DaoVoteScripts").unwrap(),
638+
Identifier::new("dao_vote_scripts").unwrap(),
639639
),
640640
Identifier::new("unstake_vote").unwrap(),
641641
vec![stc_type_tag(), action_type_tag.clone()],
@@ -653,7 +653,7 @@ pub fn dao_vote_test(
653653
{
654654
// Destroy terminated proposal
655655
let script_function = EntryFunction::new(
656-
ModuleId::new(core_code_address(), Identifier::new("Dao").unwrap()),
656+
ModuleId::new(core_code_address(), Identifier::new("dao").unwrap()),
657657
Identifier::new("destroy_terminated_proposal").unwrap(),
658658
vec![stc_type_tag(), action_type_tag],
659659
vec![

0 commit comments

Comments
 (0)